
namespace GSOrganization.Application;

public abstract class SysFileDTO : BaseService
    {
        //如果不想生成表，就加abstract
        public SysFileDTO()
        {
          
            if (!string.IsNullOrWhiteSpace(UserId))
            {
                CreateUserId= UserId;
            }
             
            IsDel = false;
            CreatedTime = DateTime.Now;
            Id = Guid.NewGuid().ToString("N");
             
        }  
        
        /// <summary>
        /// 主键
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 是否删除；false：不删除；true：删除；
        /// </summary> 
        public bool IsDel { get; set; }
         /// <summary>
         /// 创建者
         /// </summary>
        public string CreateUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }



        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(256)]
        public string Name { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [StringLength(1024)]
        public string PathMy { get; set; }

        /// <summary>
        /// 全路径
        /// </summary>
        [StringLength(1024)]
        public string FullPath { get; set; }

        /// <summary>
        /// 后缀
        /// </summary>
        [StringLength(256)]
        public string Suffix { get; set; }

        /// <summary>
        /// 大小
        /// </summary>

        public Nullable<int> Size { get; set; }

        /// <summary>
        /// 标识
        /// </summary>
        [StringLength(32)]
        public string Identification { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 类型-电子图纸，合同
        /// </summary>
        [StringLength(32)]
        public string MyStage { get; set; }
    }
 
